-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test : Create unit tests for User Info #79
Conversation
@isabelcosta Please have a look on this! Thank you for the resources! Made the work really easy |
@decon-harsh you went a little above and beyond 😅 I was mentioning the GET user info, but you did tests for the user info whole API. which is fine :) 💪🏾 I will review as soon as I can. Meanwhile, please ask for reviews from other contributors on Zulip. |
So sorry, i merged two seperate issues, of two different repos. I wrote Login and Register , Is it fine or Should I remove them? |
@decon-harsh it's fine I think unless that is work from another contributor's issue. If it is, then please remove it, so the other contributor can do it. Is it #63 ? |
Yes it is , some part for sure. Removing those. It won't be repeated again! |
@decon-harsh I will review your work today 👍 |
@codesankalp I guess I did same. Please let me know if i am wrong |
main/settings.py
Outdated
@@ -120,6 +121,9 @@ | |||
'PASSWORD': "osp", | |||
'HOST': "localhost", # Change to db for docker-compose | |||
'PORT': 5432, | |||
'TEST':{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this thing is not needed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Owh , It will create test database on it's own .
Btw what will be the name of the database created?
Will it be same "test_osp" ? And if it can create test database on it's own , then what is the need of this Test {name: ""}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the alias database name will be test_osp
and the owner will be the user osp
.
There is no need to specify 'TEST' in database configuration, you can remove these lines. @decon-harsh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolved
@decon-harsh Can you rebase your branch so that code is formatted? |
@codesankalp sorry i didn't get it , do you want me to pull the upstream ? Or do you want me to use any formatter?? |
Rebase your branch with the |
@codesankalp I squashed latest commit and it merged all commits. Closing this PR will open a new one? Works? |
Description
Created Test database test_osp
Added few unit tests for User Info Get & Post, Login & Register routes.
Fixes #78
Type of Change:
Code/Quality Assurance Only
How Has This Been Tested?
Automated tests
Checklist:
Code/Quality Assurance Only